]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
entry: Fix *-icon-clicked handler
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 4 May 2017 22:27:32 +0000 (00:27 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 4 May 2017 22:38:54 +0000 (00:38 +0200)
Commit ffe4eaf00d8 broke the handler by fetching the instance private
from the wrong actor - as we don't use the ::primary-icon-clicked signal,
and the ::secondary-icon-clicked signal still works by accident, nobody
noticed until now ...

https://bugzilla.gnome.org/show_bug.cgi?id=782190

src/st/st-entry.c

index 2b31c60192578b2b873bddbed98d6539ad5451e6..264f95657084a0e4e16a54a50483d640b1378ad2 100644 (file)
@@ -1142,7 +1142,7 @@ _st_entry_icon_press_cb (ClutterActor       *actor,
                          ClutterButtonEvent *event,
                          StEntry            *entry)
 {
-  StEntryPrivate *priv = ST_ENTRY_PRIV (actor);
+  StEntryPrivate *priv = ST_ENTRY_PRIV (entry);
 
   if (actor == priv->primary_icon)
     g_signal_emit (entry, entry_signals[PRIMARY_ICON_CLICKED], 0);